﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WMSSoft.Lib.Interfaces;
using WMSSoft.Lib.WinKStart.Abstract;

namespace WMSSoft.Lib.WinKStart.Model.MenuConfig
{
    public class SearchEngineItem : CModelBase
    {
        private string _Name = "";
        private string _ShortName = "";
        private string _Assembly = "";
        private string _ClassName = "";
        private string _Datasource = "";
        private string _Filter = "";
        private iWinKStartSearchEngine _InstanceSearchEngineItem = null;

        public SearchEngineItem(string Name, string ShortName, string Assembly, string ClassName, string DataSource = "", string Filter = "")
        {
            _Name = Name;
            _ShortName = ShortName;
            _Assembly = Assembly;
            _ClassName = ClassName;
            _Datasource = DataSource;
            _Filter = Filter;
        }

        public string Name
        {
            get { return _Name; }
            set 
            { 
                _Name = value;
                OnPropertyChanged();
            }
        }

        public string ShortName
        {
            get { return _ShortName; }
            set 
            { 
                _ShortName = value;
                OnPropertyChanged();
            }
        }

        public string Assembly
        {
            get { return _Assembly; }
            set 
            { 
                _Assembly = value;
                OnPropertyChanged();
            }
        }

        public string ClassName
        {
            get { return _ClassName; }
            set 
            { 
                _ClassName = value;
                OnPropertyChanged();
            }
        }

        public string DataSource
        {
            get { return _Datasource; }
            set 
            { 
                _Datasource = value;
                OnPropertyChanged();
            }
        }

        public string Filter
        {
            get { return _Filter; }
            set 
            { 
                _Filter = value;
                OnPropertyChanged();
            }
        }

        public iWinKStartSearchEngine InstanceSearchEngineItem
        {
            get { return _InstanceSearchEngineItem; }
            set 
            { 
                _InstanceSearchEngineItem = value;
                OnPropertyChanged();
            }
        }
    }
}
